package com.ant.storage.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author melon
 * @since 2023-11-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("house_lease")
@ApiModel(value = "HouseLease对象", description = "")
public class HouseLease implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "城市")
    @TableField("city_id")
    private Integer cityId;

    @ApiModelProperty(value = "公司")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "部门")
    @TableField("dep_id")
    private Integer depId;

    @ApiModelProperty(value = "合同类型")
    @TableField("contract_type")
    private Integer contractType;

    @ApiModelProperty(value = "合同编号")
    @TableField("contract_number")
    private String contractNumber;

    @ApiModelProperty(value = "合同名称")
    @TableField("contract_name")
    private String contractName;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "面积")
    private String area;

    @ApiModelProperty(value = "租金")
    private BigDecimal rent;

    @ApiModelProperty(value = "押金")
    private BigDecimal deposit;

    @ApiModelProperty(value = "押金附件")
    @TableField("deposit_annex")
    private String depositAnnex;

    @ApiModelProperty(value = "合同附件")
    @TableField(exist = false)
    private List<PurchaserRecordImg> depositAnnexList;

    @ApiModelProperty(value = "结余房租")
    @TableField("surplus_rent")
    private BigDecimal surplusRent;

    @ApiModelProperty(value = "开始时间")
    @TableField("start_time")
    private Date startTime;

    @ApiModelProperty(value = "截止时间")
    private Date deadline;

    @ApiModelProperty(value = "费用到期时间")
    @TableField("fee_due")
    private Date feeDue;

    @ApiModelProperty(value = "支付方式 1 季付 2 半年付 3 年付")
    @TableField("payment_method")
    private Integer paymentMethod;

    @ApiModelProperty(value = "合同附件")
    @TableField("contract_annex")
    private String contractAnnex;

    @ApiModelProperty(value = "合同附件")
    @TableField(exist = false)
    private List<PurchaserRecordImg> contractAnnexList;

    @ApiModelProperty(value = "合同状态 0 到期 1 正常 2 续约")
    @TableField("contract_status")
    private Integer contractStatus;

    @ApiModelProperty(value = "备注")
    private String notes;

    @ApiModelProperty(value = "经办人")
    private String founder;

    @ApiModelProperty(value = "签订时间")
    @TableField("signing_time")
    private Date signingTime;

    @ApiModelProperty(value = "审核是否通过 0 未通过  1 通过  2 拒绝")
    private String examine;

    @ApiModelProperty(value = "是否生效 0 不 1 生效")
    @TableField("take_effect")
    private String takeEffect;

    @ApiModelProperty(value = "电费")
    @TableField("electric_charge")
    private String electricCharge;

    @ApiModelProperty(value = "水费")
    @TableField("water_rate")
    private String waterRate;

    @ApiModelProperty(value = "气费")
    @TableField("gas_bill")
    private String gasBill;

    @ApiModelProperty(value = "物业")
    @TableField("property")
    private String property;

    @ApiModelProperty(value = "递增比例")
    @TableField("increase")
    private String  increase;
    
    @ApiModelProperty(value = "创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("creation_time")
    private Date creationTime;

    @ApiModelProperty(value = "钉钉id")
    @TableField("process_instance_id")
    private String processInstanceId;

    @TableField(exist = false)
    private List<HouseContacts> houseContactsList;

    @TableField(exist = false)
    private List<HouseAccount> houseAccountList;

    @TableField(exist = false)
    private List<HouseSettlement> houseSettlementList;

    @TableField(exist = false)
    private List<String> approval;

    @TableField(exist = false)
    private List<String> notify;

    @ApiModelProperty(value = "是否审批 0 否 1 是")
    @TableField(exist = false)
    private Integer isApproved;

    @ApiModelProperty(value = "申请类型 1 请款 2 续费 3 续签")
    @TableField(exist = false)
    private Integer invoiceType;

    @ApiModelProperty(value = "紧急程度")
    @TableField(exist = false)
    private String accountUrgency;

    @TableField(exist = false)
    private Integer  reimbursementTypeId;

    @TableField(exist = false)
    private Integer  paymentMonth;

    @TableField(exist = false)
    private BigDecimal  paymentAmount;

}
